package com.zhuzg.oauth2.domain;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

@Data
public class MyGrantedAuthority implements GrantedAuthority {

    /**
     * 权限
     */
    private String authority;

    private String name;

    /**
     * 权限描述
     */
    private String desc;

    @Override
    public String getAuthority() {
        return authority;
    }
}
